<template>
    <div class="logistics">
        <!-- <div class="logistics-header">
            <cite>
                <h3>Shipping rates</h3>
            </cite>
        </div> -->

        <div class="logistics-voyage">
            <h3>Your Order's Voyage</h3>
            <ul>
                <li>
                    <img src="@/assets/images/logistics/logistics-voyage01.png" alt="">
                    <strong>Step 1: Fulfillment</strong>
                    <em>1</em>
                    <p>Off to a start, 98% of the orders are fulfilled in 48 hours.</p>
                </li>
                <li>
                    <img src="@/assets/images/logistics/logistics-voyage02.png" alt="">
                    <strong>Step 2: Shipping</strong>
                    <em>2</em>
                    <p>On the way! Shipping times vary by destination and shipping method.</p>
                </li>
                <li>
                    <img src="@/assets/images/logistics/logistics-voyage03.png" alt="">
                    <strong>Step 3: Delivery</strong>
                    <em>3</em>
                    <p>Arrival! Your order completes the journey with a joyful delivery.</p>
                </li>
            </ul>
        </div>

        <LogisticsComputed></LogisticsComputed>
        <div class="logistics-partner">
            <h3>Shipping services</h3>
            <p>Our shipping partners bring you the best shipping experience</p>

            <cite>

                <a class="logistics-partner-ups" target="_blank" href="https://www.ups.com/us/en/Home.page">
                    <img src="@/assets/images/logistics/logistics-shipping-ups.png" style="width: 68px; height:68px;" />
                </a>

                <a class="logistics-partner-fed" target="_blank" href="https://www.fedex.com/en-us/home.html">
                    <img src="https://img.podpartner.com/static/images-20230202/shipping-icon4.png" style="width: 134px; height:54px;" />
                </a>

                <a class="logistics-partner-usps" target="_blank" href="https://www.usps.com/">
                    <img src="@/assets/images/logistics/logistics-shipping-usps.png" style="width: 196px; height:28px;" />
                </a>

                <br />

                <a class="logistics-partner-cne" target="_blank" href="https://www.cne.com/English/">
                    <img src="https://img.podpartner.com/static/images-20230202/shipping-icon2.png" style="width: 148px; height:25px;" />
                </a>

                <a class="logistics-partner-yun" target="_blank" href="https://www.yunexpress.com/">
                    <img src="https://img.podpartner.com/static/images-20230202/shipping-icon1.png" style="width: 180px; height:49px;" />
                </a>

                <!-- <a class="logistics-partner-4PX" target="_blank" href="http://en.4px.com/">
                    <img src="https://img.podpartner.com/static/images-20230202/shipping-icon3.png" alt="" />
                </a>
                <a class="logistics-partner-DHL" target="_blank" href="https://www.dhl.com/hk-en/home.html">
                    <img src="https://img.podpartner.com/static/images-20230202/shipping-icon5.png" alt="" />
                </a> -->
            </cite>
        </div>
        <LogisticsText></LogisticsText>
    </div>
</template>
<script>

import { SHIPPING } from "@/utils/SeoConfig"
export default {
    name: "SHIPPING",
    head ({ $store }) {
        return {
            title: SHIPPING.title,
            meta: [
                { name: "keywords", content: SHIPPING.keywords },
                { name: "description", content: SHIPPING.description },
            ],
        };
    },
    data () {
        return {};
    },
    methods: {},
};
</script>
<style lang="scss" scoped>
.logistics {
    // max-width: 1020px;
    // padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logistics-header {
    width: 100%;
    height: 280px;
    display: flex;
    background: #cfe1e7;
    align-items: center;
    justify-content: center;
    cite {
        position: relative;
        max-width: 980px;
        width: 100%;
        > h3 {
            font-size: 48px;
            position: relative;
            font-weight: bold;
            color: #1b1b1b;
        }
        &::after {
            content: '';
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 497px;
            height: 248px;
            background-image: url('https://img.podpartner.com/static/images-20230202/shipping-bg.png');
            background-size: 100%;
            background-repeat: no-repeat;
            background-position: center center;
        }
    }
}

.logistics-voyage {
    padding: 80px 0;
    width: 100%;
    background-color: #e4f2f7;
    & > h3 {
        font-size: 40px;
        font-family: Roboto-Medium, Roboto;
        font-weight: 500;
        color: #000000;
        line-height: 46px;
        text-align: center;
    }
    ul {
        display: flex;
        justify-content: center;
        margin-top: 60px;
    }

    li {
        width: 370px;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;

        &:nth-child(1),
        &:nth-child(2) {
            &::before {
                content: '';
                position: absolute;
                left: 50%;
                margin-left: 16px;
                top: 205px;
                width: 100%;
                height: 2px;
                background: #cfd9e0;
            }
        }

        img {
            width: 120px;
            height: 120px;
        }

        strong {
            margin-top: 24px;
            font-size: 16px;
            font-family: Roboto-Medium, Roboto;
            font-weight: 500;
            color: #1a1a1a;
            line-height: 20px;
            height: 20px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        em {
            margin-top: 20px;
            width: 32px;
            height: 32px;
            background: #fff;
            border: 6px solid #e4f2f7;
            border-radius: 32px;
            font-size: 16px;
            font-family: Roboto-Medium, Roboto;
            font-weight: 500;
            color: #333333;
            line-height: 32px;
            text-align: center;
            position: relative;
        }

        p {
            margin: 20px 16px 0;
            font-size: 14px;
            font-family: Roboto-Regular, Roboto;
            font-weight: 400;
            color: #1a1a1a;
            line-height: 22px;
            max-width: 240px;
            text-align: center;
        }
    }
}

.logistics-partner {
    position: relative;
    padding: 88px 0 58px;
    width: 100%;
    background: #f6f6f6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    > h3 {
        height: 46px;
        font-size: 32px;
        font-family: Roboto-Medium, Roboto;
        font-weight: 500;
        color: #000000;
        line-height: 46px;
        text-align: center;
    }
    > p {
        margin-top: 24px;
        font-size: 18px;
        font-family: Roboto-Regular, Roboto;
        font-weight: 400;
        color: #555555;
        line-height: 24px;
        text-align: center;
    }

    cite {
        margin-top: 32px;
        max-width: 980px;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        > a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 220px;
            height: 140px;
            background: #ffffff;
            border-radius: 12px;
            border: 1px solid #e6e6e6;
            margin: 30px;
            transition: all 0.3s;
            &:hover {
                box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.12);
                border-color: transparent;
            }
        }
    }
}

// input {
//     border: none !important;
//     outline: none !important;
// }
// ::v-deep {
//     .el-select {
//         .el-input__inner:focus,
//         .el-input__inner:hover {
//             border-color: #ea4c89;
//         }
//     }
// }

@media (max-width: 960px) {
    .logistics div {
        padding-left: 14px;
        padding-right: 14px;
    }
    .logistics-header {
        min-width: initial;
        height: 120px;
        padding: 0;

        cite {
            h3 {
                position: absolute;
                top: 50%;
                transform: translateY(-50%);
                left: auto;
                right: 50%;
                margin-right: 10px;
                font-size: 20px;
                font-weight: bold;
                color: #000000;
                line-height: 24px;
            }
            &::after {
                left: 50%;
                margin-left: 10px;
                width: 185px;
                height: 102px;
            }
        }
    }

    .logistics-voyage {
        padding: 24px 0;
        & > h3 {
            font-size: 20px;
            line-height: 22px;
        }
        ul {
            margin: 0;
            align-items: center;
            flex-direction: column;
            li {
                padding: 32px 0;
                &::before {
                    display: none;
                }
            }
        }
    }

    .logistics-partner {
        padding: 24px 0 24px !important;
        flex-direction: column;
        flex-wrap: nowrap;

        & > h3 {
            font-size: 20px;
            line-height: 22px;
        }
        & > p {
            margin: 12px 0 0;
            font-size: 14px;
            font-weight: 400;
            line-height: 24px;
        }

        & > cite {
            a {
                width: 100%;
                max-width: 500px;
                margin: 14px 0 0;
            }
        }
    }
    .logistics-explain {
        padding: 32px 14px !important;
    }
}
</style>
